import { ChangeDetectionStrategy, Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-demo3',
  templateUrl: './demo3.component.html',
  styles: [``],
  changeDetection: ChangeDetectionStrategy.OnPush,
})
export class Demo3Component {
  value = [new Date('2020-03-14'), new Date('2020-04-15')];
  range = [new Date('2020-01-10'), new Date('2020-05-22')];
  step = [2, 'Day'];

  onChange(event) {
    this.value = event;
    console.log('变化后的值是', event)
  };
}
